﻿using System.Collections.Generic;
using ZilLion.Service.TaskPlatform.Domain.Entity;

namespace ZilLion.Service.TaskPlatform.Domain.Respository.Interface
{
    public interface ITaskConfigRespository
    {
        IList<TaskConfig> GetjobConfigs();

        /// <summary>
        ///     删除
        /// </summary>
        /// <param name="config"></param>
        void RemoveTaskConfig(TaskConfig config);

        /// <summary>
        /// 保存
        /// </summary>
        /// <param name="taskConfig"></param>
        void AddData(TaskConfig taskConfig);
        void MotifyData(TaskConfig taskConfig);
        /// <summary>
        ///     获取单条config
        /// </summary>
        /// <returns></returns>
        TaskConfig GetjobConfigById(string jobid, string nodeid = null);
    }
}